package com.data.center.entity.neo4j;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.neo4j.core.schema.Node;
import org.springframework.data.neo4j.core.schema.Property;

@Data
@Node
public class Approver {
    @Id
    @Property(name = "approver_id") // 使用 approverId 作为唯一标识符
    private String approverId;

    @Property(name = "name")
    private String name;

    @Property(name = "position")
    private String position;

    public Approver() {
    }

    public Approver(String approverId, String name, String position) {
        this.approverId = approverId;
        this.name = name;
        this.position = position;
    }
}
